package com.okilo.online.app.lib.device.util

import android.content.Context
import com.okilo.online.app.lib.device.util.OkiloDevUtils.takeZipString
import org.json.JSONObject

/**
 * wifi
 */
class OkiloDev5(val context: Context) {

    fun gOkiloDev5Data(): String? {
        return try {
            val data = JSONObject().apply {
                put("currentWifi", OkiloDevUtils.gDev5Params1(context))
                put("configuredWifi", "")
                put("wifiCount", "")
            }
            data.toString().takeZipString()
        } catch (e: Exception) {
            null
        }
    }
}